<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version="1.0">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/> 
	<xsl:strip-space elements="*" />

	<xsl:template match="/">
		<html>
			<head>
				<meta charset="utf-8"/>
				<title>
					<xsl:text>Message on line</xsl:text>
				</title>
				<link rel="stylesheet" type="text/css" media="screen" title="screen" href="screen.css" />
				<link rel="stylesheet" type="text/css" media="print" href="print.css" />
				<link rel="alternate" type="application/rss+xml" href="index.rss" title="RSS" />
			</head>
			<body>
				<header>
					<h1>
						<xsl:text>Message on line</xsl:text>
					</h1>
				</header>
				<nav class="menu">
					<ul>
						<li>
							<a href="index.html" >Messages</a>
						</li>
						<li>
							<a href="newMessage.html" >Nouveau message</a>
						</li>
						<li>
							<a href="about.html" >À propos</a>
						</li>
					</ul>
				</nav>
				<section>
					<xsl:apply-templates/>
				</section>
				<footer>
					<xsl:text>Fait par Stéphane DIACQUENOD et Boris SABATIER</xsl:text>
					<a href="index.rss">RSS</a>
				</footer>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="title">
		<h2>
			<xsl:value-of select="normalize-space(.)"/>
		</h2>
	</xsl:template>
</xsl:stylesheet>
